<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the Rect class from the dart:ui library, for the Dart programming language.">
  <title>Rect class - dart:ui library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">shake</a></li>
    <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
    <li class="self-crumb">Rect class</li>
  </ol>
  <div class="self-name">Rect</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">shake</a></li>
      <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
      <li class="self-crumb">Rect class</li>
    </ol>
    
    <h5>dart:ui library</h5>
    <ol>
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#classes">Classes</a></li>
      <li><a href="dart-ui/AccessibilityFeatures-class.html">AccessibilityFeatures</a></li>
      <li><a href="dart-ui/CallbackHandle-class.html">CallbackHandle</a></li>
      <li><a href="dart-ui/Canvas-class.html">Canvas</a></li>
      <li><a href="dart-ui/Codec-class.html">Codec</a></li>
      <li><a href="dart-ui/Color-class.html">Color</a></li>
      <li><a href="dart-ui/ColorFilter-class.html">ColorFilter</a></li>
      <li><a href="dart-ui/EngineLayer-class.html">EngineLayer</a></li>
      <li><a href="dart-ui/FontWeight-class.html">FontWeight</a></li>
      <li><a href="dart-ui/FrameInfo-class.html">FrameInfo</a></li>
      <li><a href="dart-ui/Gradient-class.html">Gradient</a></li>
      <li><a href="dart-ui/Image-class.html">Image</a></li>
      <li><a href="dart-ui/ImageFilter-class.html">ImageFilter</a></li>
      <li><a href="dart-ui/ImageShader-class.html">ImageShader</a></li>
      <li><a href="dart-ui/IsolateNameServer-class.html">IsolateNameServer</a></li>
      <li><a href="dart-ui/Locale-class.html">Locale</a></li>
      <li><a href="dart-ui/MaskFilter-class.html">MaskFilter</a></li>
      <li><a href="dart-ui/Offset-class.html">Offset</a></li>
      <li><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></li>
      <li><a href="dart-ui/Paint-class.html">Paint</a></li>
      <li><a href="dart-ui/Paragraph-class.html">Paragraph</a></li>
      <li><a href="dart-ui/ParagraphBuilder-class.html">ParagraphBuilder</a></li>
      <li><a href="dart-ui/ParagraphConstraints-class.html">ParagraphConstraints</a></li>
      <li><a href="dart-ui/ParagraphStyle-class.html">ParagraphStyle</a></li>
      <li><a href="dart-ui/Path-class.html">Path</a></li>
      <li><a href="dart-ui/PathMetric-class.html">PathMetric</a></li>
      <li><a href="dart-ui/PathMetricIterator-class.html">PathMetricIterator</a></li>
      <li><a href="dart-ui/PathMetrics-class.html">PathMetrics</a></li>
      <li><a href="dart-ui/Picture-class.html">Picture</a></li>
      <li><a href="dart-ui/PictureRecorder-class.html">PictureRecorder</a></li>
      <li><a href="dart-ui/PluginUtilities-class.html">PluginUtilities</a></li>
      <li><a href="dart-ui/PointerData-class.html">PointerData</a></li>
      <li><a href="dart-ui/PointerDataPacket-class.html">PointerDataPacket</a></li>
      <li><a href="dart-ui/Radius-class.html">Radius</a></li>
      <li><a href="dart-ui/Rect-class.html">Rect</a></li>
      <li><a href="dart-ui/RRect-class.html">RRect</a></li>
      <li><a href="dart-ui/RSTransform-class.html">RSTransform</a></li>
      <li><a href="dart-ui/Scene-class.html">Scene</a></li>
      <li><a href="dart-ui/SceneBuilder-class.html">SceneBuilder</a></li>
      <li><a href="dart-ui/SceneHost-class.html">SceneHost</a></li>
      <li><a href="dart-ui/SemanticsAction-class.html">SemanticsAction</a></li>
      <li><a href="dart-ui/SemanticsFlag-class.html">SemanticsFlag</a></li>
      <li><a href="dart-ui/SemanticsUpdate-class.html">SemanticsUpdate</a></li>
      <li><a href="dart-ui/SemanticsUpdateBuilder-class.html">SemanticsUpdateBuilder</a></li>
      <li><a href="dart-ui/Shader-class.html">Shader</a></li>
      <li><a href="dart-ui/Shadow-class.html">Shadow</a></li>
      <li><a href="dart-ui/Size-class.html">Size</a></li>
      <li><a href="dart-ui/StrutStyle-class.html">StrutStyle</a></li>
      <li><a href="dart-ui/Tangent-class.html">Tangent</a></li>
      <li><a href="dart-ui/TextBox-class.html">TextBox</a></li>
      <li><a href="dart-ui/TextDecoration-class.html">TextDecoration</a></li>
      <li><a href="dart-ui/TextPosition-class.html">TextPosition</a></li>
      <li><a href="dart-ui/TextStyle-class.html">TextStyle</a></li>
      <li><a href="dart-ui/Versions-class.html">Versions</a></li>
      <li><a href="dart-ui/Vertices-class.html">Vertices</a></li>
      <li><a href="dart-ui/Window-class.html">Window</a></li>
      <li><a href="dart-ui/WindowPadding-class.html">WindowPadding</a></li>
    
    
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#properties">Properties</a></li>
      <li><a href="dart-ui/versions.html">versions</a></li>
      <li><a href="dart-ui/window.html">window</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#functions">Functions</a></li>
      <li><a href="dart-ui/decodeImageFromList.html">decodeImageFromList</a></li>
      <li><a href="dart-ui/decodeImageFromPixels.html">decodeImageFromPixels</a></li>
      <li><a href="dart-ui/hashList.html">hashList</a></li>
      <li><a href="dart-ui/hashValues.html">hashValues</a></li>
      <li><a href="dart-ui/instantiateImageCodec.html">instantiateImageCodec</a></li>
      <li><a href="dart-ui/lerpDouble.html">lerpDouble</a></li>
      <li><a href="dart-ui/loadFontFromList.html">loadFontFromList</a></li>
      <li><a href="dart-ui/saveCompilationTrace.html">saveCompilationTrace</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#enums">Enums</a></li>
      <li><a href="dart-ui/AppLifecycleState-class.html">AppLifecycleState</a></li>
      <li><a href="dart-ui/BlendMode-class.html">BlendMode</a></li>
      <li><a href="dart-ui/BlurStyle-class.html">BlurStyle</a></li>
      <li><a href="dart-ui/BoxHeightStyle-class.html">BoxHeightStyle</a></li>
      <li><a href="dart-ui/BoxWidthStyle-class.html">BoxWidthStyle</a></li>
      <li><a href="dart-ui/Brightness-class.html">Brightness</a></li>
      <li><a href="dart-ui/Clip-class.html">Clip</a></li>
      <li><a href="dart-ui/ClipOp-class.html">ClipOp</a></li>
      <li><a href="dart-ui/FilterQuality-class.html">FilterQuality</a></li>
      <li><a href="dart-ui/FontStyle-class.html">FontStyle</a></li>
      <li><a href="dart-ui/ImageByteFormat-class.html">ImageByteFormat</a></li>
      <li><a href="dart-ui/PaintingStyle-class.html">PaintingStyle</a></li>
      <li><a href="dart-ui/PathFillType-class.html">PathFillType</a></li>
      <li><a href="dart-ui/PathOperation-class.html">PathOperation</a></li>
      <li><a href="dart-ui/PixelFormat-class.html">PixelFormat</a></li>
      <li><a href="dart-ui/PointerChange-class.html">PointerChange</a></li>
      <li><a href="dart-ui/PointerDeviceKind-class.html">PointerDeviceKind</a></li>
      <li><a href="dart-ui/PointMode-class.html">PointMode</a></li>
      <li><a href="dart-ui/StrokeCap-class.html">StrokeCap</a></li>
      <li><a href="dart-ui/StrokeJoin-class.html">StrokeJoin</a></li>
      <li><a href="dart-ui/TextAffinity-class.html">TextAffinity</a></li>
      <li><a href="dart-ui/TextAlign-class.html">TextAlign</a></li>
      <li><a href="dart-ui/TextBaseline-class.html">TextBaseline</a></li>
      <li><a href="dart-ui/TextDecorationStyle-class.html">TextDecorationStyle</a></li>
      <li><a href="dart-ui/TextDirection-class.html">TextDirection</a></li>
      <li><a href="dart-ui/TileMode-class.html">TileMode</a></li>
      <li><a href="dart-ui/VertexMode-class.html">VertexMode</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#typedefs">Typedefs</a></li>
      <li><a href="dart-ui/FrameCallback.html">FrameCallback</a></li>
      <li><a href="dart-ui/ImageDecoderCallback.html">ImageDecoderCallback</a></li>
      <li><a href="dart-ui/PlatformMessageCallback.html">PlatformMessageCallback</a></li>
      <li><a href="dart-ui/PlatformMessageResponseCallback.html">PlatformMessageResponseCallback</a></li>
      <li><a href="dart-ui/PointerDataPacketCallback.html">PointerDataPacketCallback</a></li>
      <li><a href="dart-ui/SemanticsActionCallback.html">SemanticsActionCallback</a></li>
      <li><a href="dart-ui/VoidCallback.html">VoidCallback</a></li>
    
    </ol>
  </div>

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1>Rect class </h1></div>

    <section class="desc markdown">
      <p>An immutable, 2D, axis-aligned, floating-point rectangle whose coordinates
are relative to a given origin.</p>
<p>A Rect can be created with one its constructors or from an <a href="dart-ui/Offset-class.html">Offset</a> and a
<a href="dart-ui/Size-class.html">Size</a> using the <code>&amp;</code> operator:</p>
<pre class="language-dart"><code class="language-dart">Rect myRect = const Offset(1.0, 2.0) &amp; const Size(3.0, 4.0);
</code></pre>
    </section>
    

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class="constructor-summary-list">
        <dt id="Rect.fromCircle" class="callable">
          <span class="name"><a href="dart-ui/Rect/Rect.fromCircle.html">Rect.fromCircle</a></span><span class="signature">({<span class="parameter" id="fromCircle-param-center"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">center</span>, </span> <span class="parameter" id="fromCircle-param-radius"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">radius</span></span> })</span>
        </dt>
        <dd>
          Construct a rectangle that bounds the given circle. <a href="dart-ui/Rect/Rect.fromCircle.html">[...]</a>
        </dd>
        <dt id="Rect.fromLTRB" class="callable">
          <span class="name"><a href="dart-ui/Rect/Rect.fromLTRB.html">Rect.fromLTRB</a></span><span class="signature">(<span class="parameter" id="fromLTRB-param-left"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">left</span>, </span> <span class="parameter" id="fromLTRB-param-top"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">top</span>, </span> <span class="parameter" id="fromLTRB-param-right"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">right</span>, </span> <span class="parameter" id="fromLTRB-param-bottom"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">bottom</span></span>)</span>
        </dt>
        <dd>
          Construct a rectangle from its left, top, right, and bottom edges.
        </dd>
        <dt id="Rect.fromLTWH" class="callable">
          <span class="name"><a href="dart-ui/Rect/Rect.fromLTWH.html">Rect.fromLTWH</a></span><span class="signature">(<span class="parameter" id="fromLTWH-param-left"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">left</span>, </span> <span class="parameter" id="fromLTWH-param-top"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">top</span>, </span> <span class="parameter" id="fromLTWH-param-width"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">width</span>, </span> <span class="parameter" id="fromLTWH-param-height"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">height</span></span>)</span>
        </dt>
        <dd>
          Construct a rectangle from its left and top edges, its width, and its
height. <a href="dart-ui/Rect/Rect.fromLTWH.html">[...]</a>
        </dd>
        <dt id="Rect.fromPoints" class="callable">
          <span class="name"><a href="dart-ui/Rect/Rect.fromPoints.html">Rect.fromPoints</a></span><span class="signature">(<span class="parameter" id="fromPoints-param-a"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">a</span>, </span> <span class="parameter" id="fromPoints-param-b"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">b</span></span>)</span>
        </dt>
        <dd>
          Construct the smallest rectangle that encloses the given offsets, treating
them as vectors from the origin.
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="bottom" class="property">
          <span class="name"><a href="dart-ui/Rect/bottom.html">bottom</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The offset of the bottom edge of this rectangle from the y axis.
                  <div class="features">read-only</div>
</dd>
        <dt id="bottomCenter" class="property">
          <span class="name"><a href="dart-ui/Rect/bottomCenter.html">bottomCenter</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>         
        </dt>
        <dd>
          The offset to the center of the bottom edge of this rectangle. <a href="dart-ui/Rect/bottomCenter.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="bottomLeft" class="property">
          <span class="name"><a href="dart-ui/Rect/bottomLeft.html">bottomLeft</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>         
        </dt>
        <dd>
          The offset to the intersection of the bottom and left edges of this rectangle. <a href="dart-ui/Rect/bottomLeft.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="bottomRight" class="property">
          <span class="name"><a href="dart-ui/Rect/bottomRight.html">bottomRight</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>         
        </dt>
        <dd>
          The offset to the intersection of the bottom and right edges of this rectangle. <a href="dart-ui/Rect/bottomRight.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="center" class="property">
          <span class="name"><a href="dart-ui/Rect/center.html">center</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>         
        </dt>
        <dd>
          The offset to the point halfway between the left and right and the top and
bottom edges of this rectangle. <a href="dart-ui/Rect/center.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="centerLeft" class="property">
          <span class="name"><a href="dart-ui/Rect/centerLeft.html">centerLeft</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>         
        </dt>
        <dd>
          The offset to the center of the left edge of this rectangle. <a href="dart-ui/Rect/centerLeft.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="centerRight" class="property">
          <span class="name"><a href="dart-ui/Rect/centerRight.html">centerRight</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>         
        </dt>
        <dd>
          The offset to the center of the right edge of this rectangle. <a href="dart-ui/Rect/centerRight.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="hashCode" class="property">
          <span class="name"><a href="dart-ui/Rect/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; <a href="dart-core/int-class.html">int</a></span>         
        </dt>
        <dd>
          The hash code for this object. <a href="dart-ui/Rect/hashCode.html">[...]</a>
                  <div class="features">read-only, override</div>
</dd>
        <dt id="height" class="property">
          <span class="name"><a href="dart-ui/Rect/height.html">height</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The distance between the top and bottom edges of this rectangle.
                  <div class="features">read-only</div>
</dd>
        <dt id="isEmpty" class="property">
          <span class="name"><a href="dart-ui/Rect/isEmpty.html">isEmpty</a></span>
          <span class="signature">&#8594; <a href="dart-core/bool-class.html">bool</a></span>         
        </dt>
        <dd>
          Whether this rectangle encloses a non-zero area. Negative areas are
considered empty.
                  <div class="features">read-only</div>
</dd>
        <dt id="isFinite" class="property">
          <span class="name"><a href="dart-ui/Rect/isFinite.html">isFinite</a></span>
          <span class="signature">&#8594; <a href="dart-core/bool-class.html">bool</a></span>         
        </dt>
        <dd>
          Whether all coordinates of this rectangle are finite.
                  <div class="features">read-only</div>
</dd>
        <dt id="isInfinite" class="property">
          <span class="name"><a href="dart-ui/Rect/isInfinite.html">isInfinite</a></span>
          <span class="signature">&#8594; <a href="dart-core/bool-class.html">bool</a></span>         
        </dt>
        <dd>
          Whether any of the coordinates of this rectangle are equal to positive infinity.
                  <div class="features">read-only</div>
</dd>
        <dt id="left" class="property">
          <span class="name"><a href="dart-ui/Rect/left.html">left</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The offset of the left edge of this rectangle from the x axis.
                  <div class="features">read-only</div>
</dd>
        <dt id="longestSide" class="property">
          <span class="name"><a href="dart-ui/Rect/longestSide.html">longestSide</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The greater of the magnitudes of the <a href="dart-ui/Rect/width.html">width</a> and the <a href="dart-ui/Rect/height.html">height</a> of this
rectangle.
                  <div class="features">read-only</div>
</dd>
        <dt id="right" class="property">
          <span class="name"><a href="dart-ui/Rect/right.html">right</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The offset of the right edge of this rectangle from the x axis.
                  <div class="features">read-only</div>
</dd>
        <dt id="shortestSide" class="property">
          <span class="name"><a href="dart-ui/Rect/shortestSide.html">shortestSide</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The lesser of the magnitudes of the <a href="dart-ui/Rect/width.html">width</a> and the <a href="dart-ui/Rect/height.html">height</a> of this
rectangle.
                  <div class="features">read-only</div>
</dd>
        <dt id="size" class="property">
          <span class="name"><a href="dart-ui/Rect/size.html">size</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Size-class.html">Size</a></span>         
        </dt>
        <dd>
          The distance between the upper-left corner and the lower-right corner of
this rectangle.
                  <div class="features">read-only</div>
</dd>
        <dt id="top" class="property">
          <span class="name"><a href="dart-ui/Rect/top.html">top</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The offset of the top edge of this rectangle from the y axis.
                  <div class="features">read-only</div>
</dd>
        <dt id="topCenter" class="property">
          <span class="name"><a href="dart-ui/Rect/topCenter.html">topCenter</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>         
        </dt>
        <dd>
          The offset to the center of the top edge of this rectangle. <a href="dart-ui/Rect/topCenter.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="topLeft" class="property">
          <span class="name"><a href="dart-ui/Rect/topLeft.html">topLeft</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>         
        </dt>
        <dd>
          The offset to the intersection of the top and left edges of this rectangle. <a href="dart-ui/Rect/topLeft.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="topRight" class="property">
          <span class="name"><a href="dart-ui/Rect/topRight.html">topRight</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>         
        </dt>
        <dd>
          The offset to the intersection of the top and right edges of this rectangle. <a href="dart-ui/Rect/topRight.html">[...]</a>
                  <div class="features">read-only</div>
</dd>
        <dt id="width" class="property">
          <span class="name"><a href="dart-ui/Rect/width.html">width</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>         
        </dt>
        <dd>
          The distance between the left and right edges of this rectangle.
                  <div class="features">read-only</div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="dart-core/Object/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; <a href="dart-core/Type-class.html">Type</a></span>         
        </dt>
        <dd class="inherited">
          A representation of the runtime type of the object.
                  <div class="features">read-only, inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="contains" class="callable">
          <span class="name"><a href="dart-ui/Rect/contains.html">contains</a></span><span class="signature">(<wbr><span class="parameter" id="contains-param-offset"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">offset</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd>
          Whether the point specified by the given offset (which is assumed to be
relative to the origin) lies between the left and right and the top and
bottom edges of this rectangle. <a href="dart-ui/Rect/contains.html">[...]</a>
                  
</dd>
        <dt id="deflate" class="callable">
          <span class="name"><a href="dart-ui/Rect/deflate.html">deflate</a></span><span class="signature">(<wbr><span class="parameter" id="deflate-param-delta"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">delta</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>
          </span>
                  </dt>
        <dd>
          Returns a new rectangle with edges moved inwards by the given delta.
                  
</dd>
        <dt id="expandToInclude" class="callable">
          <span class="name"><a href="dart-ui/Rect/expandToInclude.html">expandToInclude</a></span><span class="signature">(<wbr><span class="parameter" id="expandToInclude-param-other"><span class="type-annotation"><a href="dart-ui/Rect-class.html">Rect</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>
          </span>
                  </dt>
        <dd>
          Returns a new rectangle which is the bounding box containing this
rectangle and the given rectangle.
                  
</dd>
        <dt id="inflate" class="callable">
          <span class="name"><a href="dart-ui/Rect/inflate.html">inflate</a></span><span class="signature">(<wbr><span class="parameter" id="inflate-param-delta"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">delta</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>
          </span>
                  </dt>
        <dd>
          Returns a new rectangle with edges moved outwards by the given delta.
                  
</dd>
        <dt id="intersect" class="callable">
          <span class="name"><a href="dart-ui/Rect/intersect.html">intersect</a></span><span class="signature">(<wbr><span class="parameter" id="intersect-param-other"><span class="type-annotation"><a href="dart-ui/Rect-class.html">Rect</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>
          </span>
                  </dt>
        <dd>
          Returns a new rectangle that is the intersection of the given
rectangle and this rectangle. The two rectangles must overlap
for this to be meaningful. If the two rectangles do not overlap,
then the resulting Rect will have a negative width or height.
                  
</dd>
        <dt id="overlaps" class="callable">
          <span class="name"><a href="dart-ui/Rect/overlaps.html">overlaps</a></span><span class="signature">(<wbr><span class="parameter" id="overlaps-param-other"><span class="type-annotation"><a href="dart-ui/Rect-class.html">Rect</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd>
          Whether <code>other</code> has a nonzero area of overlap with this rectangle.
                  
</dd>
        <dt id="shift" class="callable">
          <span class="name"><a href="dart-ui/Rect/shift.html">shift</a></span><span class="signature">(<wbr><span class="parameter" id="shift-param-offset"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">offset</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>
          </span>
                  </dt>
        <dd>
          Returns a new rectangle translated by the given offset. <a href="dart-ui/Rect/shift.html">[...]</a>
                  
</dd>
        <dt id="toString" class="callable">
          <span class="name"><a href="dart-ui/Rect/toString.html">toString</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="dart-core/String-class.html">String</a></span>
          </span>
                  </dt>
        <dd>
          Returns a string representation of this object.
                  <div class="features">override</div>
</dd>
        <dt id="translate" class="callable">
          <span class="name"><a href="dart-ui/Rect/translate.html">translate</a></span><span class="signature">(<wbr><span class="parameter" id="translate-param-translateX"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">translateX</span>, </span> <span class="parameter" id="translate-param-translateY"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">translateY</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>
          </span>
                  </dt>
        <dd>
          Returns a new rectangle with translateX added to the x components and
translateY added to the y components. <a href="dart-ui/Rect/translate.html">[...]</a>
                  
</dd>
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd class="inherited">
          Invoked when a non-existent method or property is accessed. <a href="dart-core/Object/noSuchMethod.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator ==" class="callable">
          <span class="name"><a href="dart-ui/Rect/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd>
          The equality operator. <a href="dart-ui/Rect/operator_equals.html">[...]</a>
                  <div class="features">override</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="static-properties">
      <h2>Static Properties</h2>

      <dl class="properties">
        <dt id="largest" class="property">
          <span class="name"><a href="dart-ui/Rect/largest.html">largest</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>         
        </dt>
        <dd>
          A rectangle that covers the entire coordinate space. <a href="dart-ui/Rect/largest.html">[...]</a>
                  <div class="features">final</div>
</dd>
        <dt id="zero" class="property">
          <span class="name"><a href="dart-ui/Rect/zero.html">zero</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>         
        </dt>
        <dd>
          A rectangle with left, top, right, and bottom edges all at zero.
                  <div class="features">final</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="static-methods">
      <h2>Static Methods</h2>
      <dl class="callables">
        <dt id="lerp" class="callable">
          <span class="name"><a href="dart-ui/Rect/lerp.html">lerp</a></span><span class="signature">(<wbr><span class="parameter" id="lerp-param-a"><span class="type-annotation"><a href="dart-ui/Rect-class.html">Rect</a></span> <span class="parameter-name">a</span>, </span> <span class="parameter" id="lerp-param-b"><span class="type-annotation"><a href="dart-ui/Rect-class.html">Rect</a></span> <span class="parameter-name">b</span>, </span> <span class="parameter" id="lerp-param-t"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">t</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>
          </span>
                  </dt>
        <dd>
          Linearly interpolate between two rectangles. <a href="dart-ui/Rect/lerp.html">[...]</a>
                  
</dd>
      </dl>
    </section>


  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <ol>
      <li class="section-title"><a href="dart-ui/Rect-class.html#constructors">Constructors</a></li>
      <li><a href="dart-ui/Rect/Rect.fromCircle.html">fromCircle</a></li>
      <li><a href="dart-ui/Rect/Rect.fromLTRB.html">fromLTRB</a></li>
      <li><a href="dart-ui/Rect/Rect.fromLTWH.html">fromLTWH</a></li>
      <li><a href="dart-ui/Rect/Rect.fromPoints.html">fromPoints</a></li>
    
      <li class="section-title">
        <a href="dart-ui/Rect-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="dart-ui/Rect/bottom.html">bottom</a></li>
      <li><a href="dart-ui/Rect/bottomCenter.html">bottomCenter</a></li>
      <li><a href="dart-ui/Rect/bottomLeft.html">bottomLeft</a></li>
      <li><a href="dart-ui/Rect/bottomRight.html">bottomRight</a></li>
      <li><a href="dart-ui/Rect/center.html">center</a></li>
      <li><a href="dart-ui/Rect/centerLeft.html">centerLeft</a></li>
      <li><a href="dart-ui/Rect/centerRight.html">centerRight</a></li>
      <li><a href="dart-ui/Rect/hashCode.html">hashCode</a></li>
      <li><a href="dart-ui/Rect/height.html">height</a></li>
      <li><a href="dart-ui/Rect/isEmpty.html">isEmpty</a></li>
      <li><a href="dart-ui/Rect/isFinite.html">isFinite</a></li>
      <li><a href="dart-ui/Rect/isInfinite.html">isInfinite</a></li>
      <li><a href="dart-ui/Rect/left.html">left</a></li>
      <li><a href="dart-ui/Rect/longestSide.html">longestSide</a></li>
      <li><a href="dart-ui/Rect/right.html">right</a></li>
      <li><a href="dart-ui/Rect/shortestSide.html">shortestSide</a></li>
      <li><a href="dart-ui/Rect/size.html">size</a></li>
      <li><a href="dart-ui/Rect/top.html">top</a></li>
      <li><a href="dart-ui/Rect/topCenter.html">topCenter</a></li>
      <li><a href="dart-ui/Rect/topLeft.html">topLeft</a></li>
      <li><a href="dart-ui/Rect/topRight.html">topRight</a></li>
      <li><a href="dart-ui/Rect/width.html">width</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
    
      <li class="section-title"><a href="dart-ui/Rect-class.html#instance-methods">Methods</a></li>
      <li><a href="dart-ui/Rect/contains.html">contains</a></li>
      <li><a href="dart-ui/Rect/deflate.html">deflate</a></li>
      <li><a href="dart-ui/Rect/expandToInclude.html">expandToInclude</a></li>
      <li><a href="dart-ui/Rect/inflate.html">inflate</a></li>
      <li><a href="dart-ui/Rect/intersect.html">intersect</a></li>
      <li><a href="dart-ui/Rect/overlaps.html">overlaps</a></li>
      <li><a href="dart-ui/Rect/shift.html">shift</a></li>
      <li><a href="dart-ui/Rect/toString.html">toString</a></li>
      <li><a href="dart-ui/Rect/translate.html">translate</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
    
      <li class="section-title"><a href="dart-ui/Rect-class.html#operators">Operators</a></li>
      <li><a href="dart-ui/Rect/operator_equals.html">operator ==</a></li>
    
      <li class="section-title"><a href="dart-ui/Rect-class.html#static-properties">Static properties</a></li>
      <li><a href="dart-ui/Rect/largest.html">largest</a></li>
      <li><a href="dart-ui/Rect/zero.html">zero</a></li>
    
      <li class="section-title"><a href="dart-ui/Rect-class.html#static-methods">Static methods</a></li>
      <li><a href="dart-ui/Rect/lerp.html">lerp</a></li>
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    shake 0.1.0
  </span>

  
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
